{include file='people/public/header'}
<link href="/public/static/template/people/css/base.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="/public/static/template/people/css/help.css">
  <div class="layout-boxed">
    <!-- start: SLIDING BAR (SB) -->
    <div id="slidingbar-area">
      <div id="slidingbar">
        <div class="row">
            {include file='people/public/top'}
          <div class="col-md-4 col-sm-4">
            <address class="margin-bottom-40">
             {$userinfo.user_name}
              <br>
              Email:
              <a href="#">
               {$userinfo.email}
              </a>
            </address>
            <a class="btn btn-transparent-white" href="#">
              <i class="fa fa-pencil"></i> Edit
            </a>
          </div>
          <!-- end: SLIDING BAR THIRD COLUMN -->
        </div>
        <div class="row">
          <!-- start: SLIDING BAR TOGGLE BUTTON -->
          <div class="col-md-12 text-center">
            <a href="#" class="sb_toggle"><i class="fa fa-chevron-up"></i></a>
          </div>
          <!-- end: SLIDING BAR TOGGLE BUTTON -->
        </div>
      </div>
    </div>
    <!-- end: SLIDING BAR -->
    <div class="main-wrapper">
      <!-- start: PAGESLIDE LEFT -->
      <a class="closedbar inner hidden-sm hidden-xs" href="#">
      </a>
      <nav id="pageslide-left" class="pageslide inner">
        <div class="" style="overflow:hidden;">
          <!-- start: SIDEBAR -->
          <div class="main-navigation left-wrapper transition-left">
            
            <div class="user-profile border-top padding-horizontal-10 block">
              <div class="inline-block">
                <img src="{:get_file_path($userinfo['avatar_file'])}" width="50" alt="">
              </div>
              <div class="inline-block">
                <h5 class="no-margin"> 您好： </h5>
                <h4 class="no-margin"> {$userinfo.user_name} </h4>
                <a class="btn user-options sb_toggle">
                  <i class="fa fa-cog"></i>
                </a>
              </div>
            </div>
            <!-- start: MAIN NAVIGATION MENU -->
    {include file='people/public/left'}
            <!-- end: MAIN NAVIGATION MENU -->
          </div>
          <!-- end: SIDEBAR -->
        </div>

      </nav>
      <!-- end: PAGESLIDE LEFT -->
      <!-- start: PAGESLIDE RIGHT -->
     
      <!-- end: PAGESLIDE RIGHT -->
      <!-- start: MAIN CONTAINER -->
      <div class="main-container inner">
        <!-- start: PAGE -->
        <div class="main-content">
          <div class="container">
            <div class="row">
                  <div class="user-left">
                          <div class="fw_conent"> 
                         <!--内容开始-->
                          <table class="zwfb_shop_table" width="100%" cellspacing="0" cellpadding="0" border="0">
                            <tbody><tr valign="top">
                              <td width="70" align="right">金额：</td>
                              <td><ul class="fwmc_xxk">
                                <?php foreach (config('recharge') as $k => $v): ?>
                                  <li class="<?php if($k<1){ echo "on";} ?>" data-dec='{$v.dec}' data-price='{$v.price}' data-amount='{$v.amount}'>
                                    <p>{$v.dec}</p>
                                    <i>{$v.price}</i>元</li>
                                <?php endforeach ?>
                                </ul></td>
                            </tr>
                           
                            <tr>
                              <td height="20"></td>
                              <td></td>
                            </tr>
                            <tr>
                              <td></td>
                              <form action="" class="rechareg">
                                 <input type="hidden" name="price" id="rechareg" value="<?php $prices =config('recharge');  echo $prices[0]['price'];  ?>">
                              </form>
                              <td><a class="ty_but ml20 tPost" url="{:url('people/api/recharge')}" form='rechareg' href="javascript:;" >购 买</a></td>
                            </tr>
                          </tbody></table>
                          <div class="gmxz_tip"> 
                            购买须知：
                            <p>1.T币购买后不可退</p>
                          </div>
                          
                          <!--内容结束--> 
                        </div>

                     <script type="text/javascript">
                        $('.fwmc_xxk li').click(function(event) {
                          $(this).addClass('on').siblings().removeClass('on');
                          $('#rechareg').val($(this).attr('data-price'));
                        });
                     </script> 
                      </form>
                  </div>
                </div>



          </div>
          <div class="subviews">
            <div class="subviews-container"></div>
          </div>
        </div>
        <!-- end: PAGE -->
      </div>
    </div>
</div>
{include file='people/public/footer'}